Skip to content

Initial draft for reducing CPU usage on the server#115

Closed
daid wants to merge 1 commit intomasterfrom
StaticMemberReplicationDraft
Closed

Initial draft for reducing CPU usage on the server#115
daid wants to merge 1 commit intomasterfrom
StaticMemberReplicationDraft

Conversation

@daid
Copy link
Owner

@daid daid commented May 21, 2021

This works by having configuration values use a different method to check for changes.

Example usage, just replace a member this way:
Old:

int32_t parent_id = 0;

New:

MultiplayerStaticReplication<int32_t> parent_id = 0;

This makes the parent_id into a facade towards an int32_t, and any writes to it will mark it as update required.

Note, I only checked if this compiled, didn't check if it functions correctly.
The MultiplayerStaticReplication template most likely will need a few more operators and stuff for a better facade.

…ation values use a different method to check for changes.
@daid daid marked this pull request as draft May 21, 2021 07:00
@gcask gcask mentioned this pull request May 22, 2021
@daid daid closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant